<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // 修饰符

        // g    global 全局匹配
        // i    ignore  忽视大小写

        // gi 或者ig 不分先后

        var reg = /good/gi ;  

    </script>
    
</body>
</html>